From e4fd15df9b86c33620acc7d4c27ad4c0cc108edd Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Sat, 2 Mar 2019 14:59:35 +0000 Subject: [PATCH] Stop using no-longer-existing chisqprob Needed for compatibility with scipy >= 1.0 Author: Kevin "bashtage" Sheppard Origin: upstream https://github.com/statsmodels/statsmodels/commit/575fc69257171e1dbc86461b510eb818a63c5fab Forwarded: not-needed Gbp-Pq: Name chisqprob.patch --- statsmodels/discrete/discrete_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statsmodels/discrete/discrete_model.py b/statsmodels/discrete/discrete_model.py index 7773c68..db29bfb 100644 --- a/statsmodels/discrete/discrete_model.py +++ b/statsmodels/discrete/discrete_model.py @@ -2402,7 +2402,7 @@ class DiscreteResults(base.LikelihoodModelResults): @cache_readonly def llr_pvalue(self): - return stats.chisqprob(self.llr, self.df_model) + return stats.distributions.chi2.sf(self.llr, self.df_model) @cache_readonly def llnull(self): -- 2.30.2